﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using HNCDataSetTableAdapters;

public partial class UserControl_content_about : System.Web.UI.UserControl
{
    ProductsTableAdapter pro = new ProductsTableAdapter();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            loadAbout();
        }
    }

    public void loadAbout()
    {
        //int ProductID = int.Parse(HttpContext.Current.Request.RequestContext.RouteData.Values["ProductID"].ToString());
       
        DataTable dt = pro.GetProductByCateID(2);
        lblTitle.Text = FuntionHNC.GetLanguage(dt.Rows[0]["Title"].ToString(),dt.Rows[0]["Title_en"].ToString());
        ltrContent.Text = FuntionHNC.GetLanguage(dt.Rows[0]["Content"].ToString(),dt.Rows[0]["Content_en"].ToString());
    }
}